﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>流水</title>
    @Html.Partial("wap/team/commonMeta")
    <link rel="stylesheet" href="~/css/wap/team/product.css?v=@MvcWechat.Common.Version.Get" />
    <link href="~/Css/wap/team/stock.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet" />
    <link href="~/Css/wap/team/teamorder.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet"/>
</head>
<body>
<div class="views">
    <div class="view view-main">
        <div class="navbar">
            <div class="navbar-inner">
                <header id="common_header">
                    <div class="menu_icon_box" id="show_menu_btn">
                        <em class="menu-btn"></em>
                    </div>
                    <div class="menu_icon_box" id="hide_menu_btn">
                        <em class="colse-nav-btn"></em>
                    </div>
                    <h2>审核</h2>
                </header>
                @Html.Partial("wap/team/teammenu")
                <div class="subnavbar" style="display: block;padding: 0;height:auto;background-color: #fff;padding-top: 5px;">
                    <div>
                        <ul class="clearfix" id="navMenu">
                            <li><a data-href="/wap/team/flow" href="#" class="active">流水</a></li>
                            <li><a data-href="/wap/team/bank" href="#">账户</a></li>
                        </ul>
                    </div>
                    <div class="list_status clearfix" id="_sysStatus">
                        <ul>
                            <li data-value="" title="全部"  class="add_blue">全部 (<b id="total_charge1">0</b>)</li>
                            <li data-value="0" title="待审核">待审核 (<b id="_charge0">0</b>)</li>
                            <li data-value="1" title="已审核">已审核 (<b id="_charge1">0</b>)</li>
                            <li data-value="2" title="已复核">已复核 (<b id="_charge2">0</b>)</li>
                            <li data-value="-1" title="已作废">已作废 (<b id="_charge">0</b>)</li>
                        </ul>
                        <span id="show_term_btn" class="add_blue" style="clear: both;">筛选</span>
                        <!--添加a标签 8-3 -->
                        <span class="add_blue add_btn"><a class="add" href="javascript:void(0)" onclick="add_box()" title="申请收支">申请</a></span>
                    </div>

                    <table class="product_table" id="product_table_fixed" style="padding-top: 3px;">
                        <thead>
                        <tr>
                            <th style='width:8%' class="check_head_box"></th>
                            <th class='nickname' style='width:15%'>账户</th>
                            <th style='width:12%' title="支出金额">支出</th>
                            <th style='width:12%' title="实收金额">收入</th>
                            <th style='width:10%'>交易类型<i class="sort sort_normal" data-sort="Type"></i></th>
                            <th style='width:10%'>公司</th>
                            <th style='width:10%'>状态<i class="sort sort_normal" data-sort="Status"></i></th>
                            <th style='width:10%'>详情</th>
                            <th style='width:13%'>操作</th>
                        </tr>
                        </thead>

                        <tbody id="stock_body_hide">

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="pages navbar-through toolbar-through">
            <div data-page="index" class="page">
                <!--内容区start-->
                <div class="page-content" id="app_no_header">
                    <!-- 库存列表start -->
                    <div id="inventory" style="background-color: #fff;">
                        <table class="product_table table_hide" id="product_table">
                            <thead>
                            <tr>
                                <th style='width:8%' class="check_head_box"></th>
                                <th class='nickname' style='width:15%'>账户</th>
                                <th style='width:12%' title="支出金额">支出</th>
                                <th style='width:12%' title="实收金额">收入</th>
                                <th style='width:10%'>交易类型<i class="sort sort_normal" data-sort="Type"></i></th>
                                <th style='width:10%'>公司</th>
                                <th style='width:10%'>状态<i class="sort sort_normal" data-sort="Status"></i></th>
                                <th style='width:10%'>详情</th>
                                <th style='width:13%'>操作</th>
                            </tr>
                            </thead>
                            <tbody id="stock_body">

                            </tbody>
                        </table>
                    </div>
                    <p class="totalcount">显示前500条<a class="diasType"></a></p>
                </div>
                <!--内容区end-->
            </div>
        </div>

        <!--弹出框start-->

        <!-- 审核收支start --->
        <div class="popup modify_pop_box edit_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>审核收支</h5>
                <form class="form-inline _mod" style="padding: 5px 5px 5px 30px;" action="post">
                    <div class="form-group" style="display: none">
                        <label for="ID">标识：</label>
                        <input type="text" class="form-control" id="_iD" placeholder="标识" name="ID">
                    </div>
                    <div class="form-group" style="display: none">
                        <label for="OrderIDs">订单：</label>
                        <input type="text" class="form-control" id="_orderIDs" placeholder="订单" name="OrderIDs">
                    </div>
                    <div class="form-group" style="display: none">
                        <label for="CustomerID">标识：</label>
                        <input type="text" class="form-control" id="_custID" placeholder="客户标识" name="CustomerID">
                    </div>

                    <div class="form-group">
                        <label for="Account">账户：</label>
                        <select id="mod_accountID" class="form-control list_search" name="Account"></select>
                    </div>

                    <div class="form-group">
                        <label for="Abstract">操作：</label>
                        <select class="form-control" name="Abstract" id="_abstract" disabled="disabled">
                            <option value="1">支付全款</option>
                            <option value="2">客户充值</option>
                            <option value="3">退供应商</option>
                            <option value="4">自留变货</option>
                            <option value="5">余额提现</option>
                            <option value="6">确认到货</option>
                            <option value="7">取消到货</option>
                            <option value="8">申请收支</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Type">类型：</label> <!-- 1收入 2支出 3定金 4提现-->
                        <select class="form-control" name="Type" id="_type" disabled="disabled">
                            <option value="1">收入</option>
                            <option value="2">支出</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Currency">币种：</label> <!-- 1人民币 2美金-->
                        <select class="form-control" name="Currency" id="_currency">
                            <option value="1">人民币</option>
                            <option value="2">美金</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Amount"><b style="color:red;">交易金额：</b></label>
                        <input type="number" class="form-control" id="_amount" placeholder="交易金额" name="Amount">
                    </div>
                    <div class="form-group">
                        <label for="Receivable">应收/支金额：</label>
                        <input type="number" class="form-control" id="_receivable" placeholder="应收入/支出金额" name="Receivable" readonly="readonly">
                    </div>
                    <div class="form-group">
                        <label for="">差额：</label>
                        <input type="number" class="form-control" id="_bal" placeholder="差额" readonly="readonly" name="xx" style="color:red;">
                        <p>请注意差额数额是否在允许的范围内，否则将会带来财务问题</p>
                    </div>
                    <div class="form-group">
                        <label for="ArrivalTime">到账日期：</label>
                        <div class="list-block" style="margin: 0; width: 70%;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="到账日期" readonly id="_arrivalTime" required="required">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="Others">人物：</label>
                        <input type="text" class="form-control" id="_others" placeholder="人物" name="Others">
                    </div>

                    <div class="form-group">
                        <label for="Purpose">用途：</label>
                        <select class="form-control" name="Purpose" id="_purpose">
                            <option value="1">裸钻</option>
                            <option value="6">货品</option>
                            <option value="2">兑换</option>
                            <option value="4">借款</option>
                            <option value="5">还款</option>
                            <option value="7">耗材</option>
                            <option value="8">开支</option>
                            <option value="9">押金</option>

                        </select>
                    </div>
                    <div class="form-group form-group-com">
                        <label for="Status">状态：</label>
                        <label for="tg" style="color:red;"><input type="radio" name="Status" value="1" id="tg" checked="checked" />通过&nbsp;&nbsp;&nbsp;</label>
                        <label for="zf"><input type="radio" name="Status" value="-1" id="zf"/>作废</label>
                        <!--</label>-->
                    </div>
                    <div class="form-group remarks-group">
                        <label for="Remarks">申请备注：</label>
                        <textarea class="form-text" id="_remarks" placeholder="申请备注" name="Remarks" cols="65" disabled="disabled"></textarea>
                    </div>
                    <div class="form-group remarks-group">
                        <label for="Comments">审核备注：</label>
                        <textarea class="form-text" id="_comments" placeholder="审核备注" name="Comments" cols="65"></textarea>
                    </div>
                    <div class="confirm">
                        <input type="button" class="btn btn-danger supbtn close-popup" value="取消" name="x"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                </form>
            </div>
        </div>
        <!-- 审核收支end --->

        <!-- 添加收支start -->
        <div class="popup modify_pop_box add_pop_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>申请收支</h5>
                <form class="form-inline _add" style="padding: 5px 5px 5px 30px;" action="post">

                    <div class="">
                        <label style="vertical-align: top;">账户：</label>
                        <div class="account-radio" id="_bankID1">
                        </div>
                    </div>

                    <div class="">
                        <label for="Abstract">操作：</label>
                        <input type="radio" name="Abstract" value="8" id="sq" checked="checked" /><label for="sq">申请&nbsp;</label>
                    </div>
                    <div>
                        <label for="Type">收支：</label>
                        <label class="checkbox-inline">
                            <input type="radio" name="Type" value="2" id="zc" /><label for="zc">支出 -&nbsp;</label>
                            <input type="radio" name="Type" value="1" id="sr"/><label for="sr">收入 +&nbsp;</label>
                        </label>
                    </div>
                    <div class="form-group">
                        <label for="Amount"><b style="color:red;">交易金额：</b></label>
                        <input type="number" class="form-control" id="amount" placeholder="交易金额" name="Amount">
                    </div>
                    <div class="form-group">
                        <label for="Currency">币种：</label>
                        <select class="form-control" name="Currency" id="currency">
                            <option value="1">人民币</option>
                            <option value="2">美元</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="ArrivalTime">到款：</label>
                        <div class="list-block" style="margin: 0; width: 70%;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="到款日期" readonly id="arrivalTime" required="required">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="Purpose">用途：</label>
                        <select class="form-control" name="Purpose" id="purpose">
                            <option value="1">裸钻</option>
                            <option value="6">货品</option>
                            <option value="2">兑换</option>
                            <option value="4">借款</option>
                            <option value="5">还款</option>
                            <option value="7">耗材</option>
                            <option value="8">开支</option>
                            <option value="9">押金</option>

                        </select>
                    </div>
                    <div class="form-group">
                        <label for="Others">人物：</label>
                        <input type="text" class="form-control" id="others" placeholder="人物" name="Others">
                    </div>
                    <div class="form-group">
                        <label for="Status">状态：</label>
                        <select class="form-control" name="Status" id="status" disabled="disabled">
                            <option value="1">已审核</option> <!-- 1已审核 -1已作废 -->
                        </select>
                    </div>
                    <div class="remarks-group">
                        <label for="Remarks">申请备注：</label>
                        <textarea id="remarks" name="Remarks" placeholder="申请备注" class="form-text" cols="65"></textarea>
                    </div>
                    <div class="confirm">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"  />
                        <input type="submit" class="btn btn-danger supbtn" value="确定"/>
                    </div>
                </form>
            </div>
        </div>
        <!-- 添加收支end -->

        <!-- 复核start-->
        <div class="popup pop_bg_box" id="review_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>复核</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_review">
                    <input type="text" name="ID" id="form_id" style="display: none;" />
                    <div class="form-group">
                        <label for="reviewRemarks" style="vertical-align: top;">复核备注:</label>
                        <textarea class="form-control" id="reviewRemarks" placeholder="复核备注"  name="Comments" style="width: 60%;height: 50px;"></textarea>
                    </div>
                    <div class="confirm">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"  style="margin-left: 20px;" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定"  />
                    </div><!-- onclick="ReturnOrders();" -->
                </form>
            </div>
        </div>
        <!--复核end -->
        <!--筛选start-->
        <div class="popup user_filter_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>审核筛选</h5>
                <form class="form-finance-filtrate">
                    <div class="form-group">
                        <label>客户：</label>
                        <datalist id="_customerCodes" class="form-control list_search" style="display:none;"></datalist> <!--  -->
                        <input type="text" id="_customerCs" list="_customerCodes" class="form-control" placeholder="客户" name="_customerCs" />
                    </div>
                    <div class="form-group">
                        <label>支出/收入：</label>
                        <input class="form-control" type="text" placeholder="支出/收入金额" id="_amt" />
                    </div>
                    <div class="form-group">
                        <label>人物：</label>
                        <input class="form-control" type="text" placeholder="人物" id="sel_others" />
                    </div>
                    <div class="form-group">
                        <label>申请人：</label>
                        <input class="form-control" type="text" placeholder="申请人" id="_saleRealName" />
                    </div>
                    <div class="form-group">
                        <label>账户：</label>
                        <select id="sel_accountID" class="form-control list_search"></select>
                    </div>
                    <div class="form-group">
                        <label>交易类型：</label>
                        <select class="form-control list_search" id="sel_type">
                            <option value="">交易类型</option>
                            <option value="1">收入</option>
                            <option value="2">支出</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>摘要：</label>
                        <select class="form-control list_search" id="sel_abstract">
                            <option value="">摘要</option>
                            <option value="0">订单付款</option>
                            <option value="1">支付全款</option>
                            <option value="2">客户充值</option>
                            <option value="3">退供应商</option>
                            <option value="4">自留变货</option>
                            <option value="5">余额提现</option>
                            <option value="6">确认到货</option>
                            <option value="7">取消到货</option>
                            <option value="8">申请收支</option>
                            <option value="9">兑换美金</option>
                            <option value="10">直接充值</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>用途：</label>
                        <select class="form-control list_search" id="sel_purpose">
                            <option value="">用途</option>
                            <option value="1">裸钻</option>
                            <option value="6">货品</option>
                            <option value="2">兑换</option>
                            <option value="4">借款</option>
                            <option value="5">还款</option>
                            <option value="7">耗材</option>
                            <option value="8">开支</option>
                            <option value="9">押金</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>币种：</label>
                        <select class="form-control list_search" id="sel_currency">
                            <option value="">币种</option>
                            <option value="1" class="CurrentRMB">人民币</option>
                            <option value="2" class="CurrentUSD">美金</option>
                        </select>
                    </div>
                    <div class="form-time form-time-two">
                        <label>申请时间：</label>
                        <div class="list-block" style="margin: 0;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input time_input" name="DeliveryTime" placeholder="申请时间" readonly id="screatetime" required="required">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <span>至</span>
                        <div class="list-block" style="margin: 0;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input time_input" name="DeliveryTime" placeholder="申请时间" readonly id="ecreatetime" required="required">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>

                    <div class="form-time form-time-two">
                        <label>审核时间：</label>
                        <div class="list-block" style="margin: 0;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input time_input" name="DeliveryTime" placeholder="审核时间" readonly id="supdatetime" required="required">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <span>至</span>
                        <div class="list-block" style="margin: 0;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input time_input" name="DeliveryTime" placeholder="审核时间" readonly id="eupdatetime" required="required">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="confirm">
                        <input type="reset" class="btn btn-danger supbtn" value="重置"/>
                        <input type="button" class="btn btn-danger supbtn" id="confirm_btn"  value="确定"/>   <!--onclick="LoadUser()"-->
                    </div>
                </form>
            </div>
        </div>
        <!--筛选end-->

        <!-- 订单详情框start-->
        <div class="popup detail_pop_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>订单详情</h5>
                <div class="order-detail-info">
                    <table class="product_table" id="detail">
                        <thead>
                        <tr>
                            <th style='width:8%'>序号</th>
                            <th style='width:8%'>形状</th>
                            <th style='width:8%'>重量</th>
                            <th style='width:13%'>证书</th>
                            <th style='width:10%'>卖RMB</th>
                            <th style='width:10%'>卖USD</th>
                            <th style='width:25%'>下单</th>
                            <th style='width:8%'>支付</th>
                            <th style='width:10%'>业务</th>
                        </tr>

                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <!-- 订单详情框end-->

        <!--弹出框end-->

    </div>
</div>
</body>
</html>
@Html.Partial("wap/team/commonTeamJs")
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/js/wap/team/flow.js?v=@MvcWechat.Common.Version.Get" type="text/javascript"></script>
